import request from '@/utils/request'

export const login = data => {
  return request.post('/sys/login', data)
}
// 获取用户详情
export const getuserinfo = () => {
  return request.post('/sys/profile')
}
// 获取用户头像
export const getphoto = id => {
  return request.get(`/sys/user/${id}`)
}
